from django_filters import rest_framework

from apps.reports.models import Report


class ReportFilter(rest_framework.FilterSet):
    name = rest_framework.CharFilter(lookup_expr='contains')

    class Meta:
        model = Report
        fields = ['name', 'project']